package co.edu.udea.ingweb.model;
// Generated 24-nov-2014 7:33:26 by Hibernate Tools 4.3.1


import java.util.Date;

/**
 * Esta clase corresponde a las reglas que crea el usuario para 
 * recibir alertas en el sistema
 * @author oscar gallon
 * @author felipe correa
 */
public class Rule  implements java.io.Serializable {


     private RuleId id;
     private Integer lowerThan;
     private Integer greaterThan;
     private Integer equalsTo;
     private Date createdAt;
     private Date updateAt;

    public Rule() {
    }

	
    public Rule(RuleId id, Date createdAt, Date updateAt) {
        this.id = id;
        this.createdAt = createdAt;
        this.updateAt = updateAt;
    }
    public Rule(RuleId id, Integer lowerThan, Integer greaterThan, Integer equalsTo, Date createdAt, Date updateAt) {
       this.id = id;
       this.lowerThan = lowerThan;
       this.greaterThan = greaterThan;
       this.equalsTo = equalsTo;
       this.createdAt = createdAt;
       this.updateAt = updateAt;
    }
   
    public RuleId getId() {
        return this.id;
    }
    
    public void setId(RuleId id) {
        this.id = id;
    }
    public Integer getLowerThan() {
        return this.lowerThan;
    }
    
    public void setLowerThan(Integer lowerThan) {
        this.lowerThan = lowerThan;
    }
    public Integer getGreaterThan() {
        return this.greaterThan;
    }
    
    public void setGreaterThan(Integer greaterThan) {
        this.greaterThan = greaterThan;
    }
    public Integer getEqualsTo() {
        return this.equalsTo;
    }
    
    public void setEqualsTo(Integer equalsTo) {
        this.equalsTo = equalsTo;
    }
    public Date getCreatedAt() {
        return this.createdAt;
    }
    
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
    public Date getUpdateAt() {
        return this.updateAt;
    }
    
    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }




}


